package com.bootx.officialAccount.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * @author black
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class DraftAddResponse {

    @JsonProperty("media_id")
    private String mediaId;
    private List<ItemBean> item = new ArrayList<>();

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public List<ItemBean> getItem() {
        return item;
    }

    public void setItem(List<ItemBean> item) {
        this.item = item;
    }

    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class ItemBean {
        private Integer index;
        @JsonProperty("ad_count")
        private Integer adCount;

        public Integer getIndex() {
            return index;
        }

        public void setIndex(Integer index) {
            this.index = index;
        }

        public Integer getAdCount() {
            return adCount;
        }

        public void setAdCount(Integer adCount) {
            this.adCount = adCount;
        }
    }
}
